package com.wuzao.DecoratorPattern.jdkIoStudy;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class InputStreamStudy {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = new BufferedInputStream(new FileInputStream("FileInputStreamStudy.txt"));
        System.out.println(inputStream.read());
        System.out.println(inputStream.markSupported());
//        inputStream.mark();
//        inputStream.reset();
        inputStream.close();
    }
}
